IF exists(SELECT * FROM dbo.sysobjects WHERE name='vulRefterschikking' AND xtype='P') 
BEGIN
	DROP PROCEDURE vulRefterschikking
END
GO

create procedure vulRefterschikking
as

insert refterschikking(tafelnummer)
select r.tafelnummer
  from reftertafelnamen as r
left join refterschikking as re
  on r.tafelnummer=re.tafelnummer 
where re.tafelnummer is null 